<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/plantillas/plantillaPrincipal.xhtml">
        <ui:define name="contenido">

            <h:form>
                <p:panel header="Datos del Banco" style="width:40%;margin: 10px auto;" styleClass="print">

                    <h:panelGrid cellpadding="5"  style="width:70%;margin:0px auto;" columns="2" id="verBanco" > 

                        <h:outputText id="lblNombreBanco" value="NOMBRE: "  styleClass="lblVerN" />
                        <h:outputText id="txtNombreBanco" value="#{BKBanco.bancoFormulario.nombre}" styleClass="lblVer" />


                        <h:outputText id="lblContactoBanco" value="CONTACTO: " styleClass="lblVerN" />	
                        <h:outputText id="txtContactoBanco" value="#{BKBanco.bancoFormulario.contactoBanco}" styleClass="lblVer" />

                        <h:outputText id="lblTelefonoBanco" value="TELEFONO: " styleClass="lblVerN" />
                        <h:outputText id="txtTelefonoBanco" value="#{BKBanco.bancoFormulario.telefonoContacto}" styleClass="lblVer" />


                        <h:outputText id="lblCorreoBanco" value="CORREO: " styleClass="lblVerN" />
                        <h:outputText id="txtCorreoBanco" value="#{BKBanco.bancoFormulario.observacion}" styleClass="lblVer" />


                        <h:outputText id="lblObservacionBanco" value="OBSERVACION: " styleClass="lblVerN" />
                        <h:outputText id="txtObservacionBanco" value="#{BKBanco.bancoFormulario.observacion}" styleClass="lblVer" />
                    </h:panelGrid>


                    <h:panelGrid cellpadding="10" style="width: auto;margin:0px auto;border:0px" columns="2">
                        <p:commandButton action="#{MBBanco.cancelar()}" ajax="false" immediate="true" value="Volver"/>
                        <p:commandButton  value="Imprimir" type="button" icon="ui-icon-print">  
                            <p:printer target="verBanco" />    
                        </p:commandButton >
                    </h:panelGrid>
                </p:panel>	
            </h:form>

        </ui:define>

    </ui:composition>
</html>